home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / ypmake.z / ypmake
Encoding:
Text File  |  2002-10-03  |  6.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. yyyyppppmmmmaaaakkkkeeee((((1111MMMM))))                                                          yyyyppppmmmmaaaakkkkeeee((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ypmake - rebuild and distribute NIS databases
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////vvvvaaaarrrr////yyyypppp////yyyyppppmmmmaaaakkkkeeee [ [ _m_a_k_e-_o_p_t_i_o_n_s ] _m_a_p ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      On NIS master machines, _y_p_m_a_k_e uses the file /_v_a_r/_y_p/_m_d_b_m__p_a_r_s_e and the
  16.      optional file /_v_a_r/_y_p/_l_o_c_a_l._m_a_k_e._s_c_r_i_p_t to build the network information
  17.      service (NIS) databases.  With no arguments, _y_p_m_a_k_e creates _m_d_b_m(3B)
  18.      databases for any NIS maps that are out-of-date and then executes
  19.      _y_p_p_u_s_h(1M) to notify slave servers that there has been a change.
  20.  
  21.      If invoked with _m_a_p, _y_p_m_a_k_e updates that map only.  Typing yyyyppppmmmmaaaakkkkeeee ppppaaaasssssssswwwwdddd
  22.      creates and _y_p_p_u_s_hes the password database (assuming it is out-of-date).
  23.      Likewise, yyyyppppmmmmaaaakkkkeeee hhhhoooossssttttssss and yyyyppppmmmmaaaakkkkeeee nnnneeeettttwwwwoooorrrrkkkkssss create databases from the host
  24.      and network files, /_e_t_c/_h_o_s_t_s and /_e_t_c/_n_e_t_w_o_r_k_s, and _y_p_p_u_s_h the databases
  25.      to the slave servers.  With the ----uuuu option, _y_p_m_a_k_e always creates the map.
  26.  
  27.      _c_r_o_n(1M) executes _y_p_m_a_k_e at regular intervals in order to maintain
  28.      consistency between NIS servers' databases.  Once a day, _y_p_m_a_k_e moves the
  29.      log file /_v_a_r/_y_p/_y_p_m_a_k_e._l_o_g to /_v_a_r/_y_p/_y_p_m_a_k_e._l_o_g._o_l_d to keep it from
  30.      growing too large.
  31.  
  32.      _y_p_m_a_k_e reads the file /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s so that users can
  33.      specify arguments to mdbm_parse.
  34.  
  35.      DDDDIIIIRRRR  The directory of the source files.  (Default is /_e_t_c.)
  36.  
  37.      DDDDOOOOMMMM  Used to construct a domain other than the master's default domain.
  38.  
  39.      NNNNOOOOPPPPUUUUSSSSHHHH
  40.           When non-null, inhibits doing a _y_p_p_u_s_h of the new database files.
  41.           (Default is the null string.)
  42.  
  43.      PPPPWWWWFFFFIIIILLLLEEEE
  44.           full pathname of the password file used to build the passwd
  45.           database.  (Default is /_e_t_c/_p_a_s_s_w_d.)
  46.  
  47.           For instance, to change the location of the password file used by
  48.           _y_p_m_a_k_e to /_e_t_c/_p_a_s_s_w_d._y_p, include:
  49.  
  50.           PWFILE=/etc/passwd.yp
  51.  
  52.  
  53.           in /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s.
  54.  
  55.      PPPPWWWWDDDDIIIIRRRR
  56.           full pathname of the directory of password and, optionally, shadow
  57.           file used to build the passwd database. For example, to use both
  58.           password and shadow files from /_e_t_c/_y_p instead of standard /_e_t_c,
  59.           include
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. yyyyppppmmmmaaaakkkkeeee((((1111MMMM))))                                                          yyyyppppmmmmaaaakkkkeeee((((1111MMMM))))
  71.  
  72.  
  73.  
  74.           PWDIR=/etc/yp
  75.  
  76.  
  77.           in /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s.
  78.  
  79.           There is no default value for this variable and if it is not set,
  80.           PPPPWWWWFFFFIIIILLLLEEEE is used. Note that if both PPPPWWWWDDDDIIIIRRRR and PPPPWWWWFFFFIIIILLLLEEEE is specified,
  81.           PPPPWWWWDDDDIIIIRRRR takes precedence, but if neither is set, default value for
  82.           PPPPWWWWFFFFIIIILLLLEEEE is used.
  83.  
  84.      Other then adding the variables to /_e_t_c/_c_o_n_f_i_g/_y_p_m_a_s_t_e_r._o_p_t_i_o_n_s, they can
  85.      also be specified as arguments on the _y_p_m_a_k_e command line.
  86.  
  87.      To have local NIS maps updated by _y_p_m_a_k_e, create the file
  88.      /_v_a_r/_y_p/_l_o_c_a_l._m_a_k_e._s_c_r_i_p_t and add rules similar to the ones in
  89.      _m_d_b_m__p_a_r_s_e.
  90.  
  91.      Refer to _y_p_f_i_l_e_s(4) and _y_p_s_e_r_v(1M) for an overview of NIS.
  92.  
  93. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  94.      To create and push the _h_o_s_t_s map only it's out-of-date:
  95.  
  96.           _yyyy_pppp_mmmm_aaaa_kkkk_eeee _hhhh_oooo_ssss_tttt_ssss
  97.  
  98.      To always create and push the _h_o_s_t_s and _p_a_s_s_w_d map:
  99.  
  100.           _yyyy_pppp_mmmm_aaaa_kkkk_eeee _----_uuuu _hhhh_oooo_ssss_tttt_ssss _pppp_aaaa_ssss_ssss_wwww_dddd
  101.  
  102.      To always create but not push the _a_l_i_a_s_e_s map:
  103.  
  104.           _yyyy_pppp_mmmm_aaaa_kkkk_eeee _----_uuuu _NNNN_OOOO_PPPP_UUUU_SSSS_HHHH_====_1111 _aaaa_llll_iiii_aaaa_ssss_eeee_ssss
  105.  
  106.  
  107. FFFFIIIILLLLEEEESSSS
  108.      /etc/config/ypmaster.options
  109.      /var/yp/make.script
  110.      /var/yp/local.make.script
  111.      /var/yp/mdbm_parse
  112.      /var/yp/ypmake.log
  113.      /var/yp/ypmake.log.old
  114.  
  115. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  116.      cron(1M), make(1), makemdbm(1M), ypserv(1M).
  117.  
  118. NNNNOOOOTTTTEEEE
  119.      The mdbm_parse script supports building a database for the shadow
  120.      passwords, but this database is not built by default.  Ypmake must be
  121.      explicitly called with a shadow map name argument.
  122.  
  123.      If support for new databases are added a line must be added to the file
  124.      ////vvvvaaaarrrr////nnnnssss////ddddoooommmmaaaaiiiinnnnssss////DDDDOOOOMMMMAAAAIIIINNNN////nnnnsssssssswwwwiiiittttcccchhhh....ccccoooonnnnffff for the NIS domain in question for
  125.      the server to allow queries to the map.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.